﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="KeywordsList.aspx.cs" Inherits="Manager_Ad_KeywordsList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
      <title>金兰广告联合推广中心</title>
        <link href="images/Top.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript">
        var MaxPage = <%=MaxPage%>;
        function gopage(pageIndex) {
            if (pageIndex == "")
                return;
            if(pageIndex > MaxPage)
                return;
            if(pageIndex < 1)
                return;
                
            document.forms[0].action= "KeyWordsList.aspx?action=gopage&pageIndex=" + pageIndex; 
            document.forms[0].submit();
        }
        function delAll(){
            var actionForm = deleteAll();
            if(actionForm != null){
                actionForm.action= "KeyWordsList.aspx?action=deleteAll&pageIndex=<%=currPageIndex%>"; 
                actionForm.submit(); 
            }
        }
        
         function queryFilter(){
            document.forms[0].action= "KeyWordsList.aspx?action=queryFilter&pageIndex=1"; 
            document.forms[0].submit();
        }

        function checkUse(check){
            check.disabled="disabled";
            document.form1.action= "KeyWordsList.aspx?action=updateuse&pageIndex=<%=currPageIndex%>&id="+check.value;
            document.form1.submit();
        }
    </script>
</head>
<body>
<form id="form1" name="form1" method="post">
  <div class="top">
  <div class="logo"></div>
  <div class="topLeft">
    你好，<%=SessionUser.Email %>! <a href="RequestHandler.ashx?ut=custom&action=logout&uid=<%=SessionUser.Email %>" onclick="return window.confirm('确定退出吗');">退出</a><br /><br /><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1939337318&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:1939337318:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>　<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2570978789&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2570978789:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>　<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2207922598&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2207922598:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a></div>
  <!--页面头部 end-->
  <ul class="topNav">
<DIV id=NavMain class="nav_main">
<UL>
  <li class=homepage><A id=NavMainHome title=首页 
  href="Main.html">首页</A></li>
  <li class=account><A id=NavMainAccount title=账户信息 
  href="PersonalInfo.html" >账户信息</A></li>
  <li class=finance><A id=NavMainFinance title=充值管理
  href="AccountInfo.html" >充值管理</A></li>
  <li class=overview><A id=NavMainOverview title=搜索引擎推
  href="KeywordsList.aspx?action=gopage&pageIndex=1" class="current">搜索引擎推广</A></li>
  <li class=overtao><A id=NavMainovertao title=网店推广
  href="ShopList.aspx?action=gopage&pageIndex=1">网店推广</A></li>
  <li class=manage><A id=NavMainManage title=邀请好友
  href="InviteLink.html">邀请好友</A></li></UL></DIV>
  </ul>
</div>
<div class="topSpace"></div>


  <!-- Main -->
<div class="main">
   <DIV class=main-nav>
    <UL>
  <li class=current> 搜索推广管理 </li>
  <li class=arrow>&gt;</li>
  <li> <font style="font-size:14px">关键词总数　<strong><font color="#FF0000"><%=MaxSize %></font></strong> 个  在线关键词　<strong><font color="#FF0000"><%=MaxOnLine %></font></strong>　个　今日使用积分　<strong><font color="#FF0000"><%=HttpDataCache.AppSettings.EverydayKeyWordBalancePoint * MaxSize%></font></strong>　　　</font> </li>
  </UL></DIV> 
  </DIV> 

<div class="main">
<br />
<div  align="left">
   <a href="Keywords.aspx?action=add&typeId=<%=(int)AD.Model.SearchEngineType.Baidu %>"><img alt="" src="images/btn_addurl_baidu.gif" border="0" /></a>
  &nbsp;
   <a href="Keywords.aspx?action=add&typeId=<%=(int)AD.Model.SearchEngineType.Google %>"><img alt="" src="images/btn_addurl_google.gif" border="0" /></a>
	&nbsp;
  <a href="Keywords.aspx?action=add&typeId=<%=(int)AD.Model.SearchEngineType.Sogo %>"><img alt="" src="images/btn_addurl_sogo.gif" border="0" /></a>

</div>
<br />
<table cellspacing="0" cellpadding="0" style="text-align: center" align="center" width="100%">
 <tr>
  <th width="10%" bgcolor="#F6F6F6">是否启用</th>
 <th width="20%" bgcolor="#F6F6F6">关键词</th>
<th width="20%" bgcolor="#F6F6F6">推广类别 </th>
<th width="20%" bgcolor="#F6F6F6">状态</th>
<th width="20%" bgcolor="#F6F6F6">提交日期 </th>
<th width="20%" bgcolor="#F6F6F6">管理</th>
</tr>
<%foreach (var keyword in KeyWords)
  {%>
<tr>
 <td height="30"><input name="IsUse" id="IsUse" type="checkbox" onclick="checkUse(this)" value="<%=keyword.AutoID%>" <%=keyword.IsUse==true?"checked=\"checked\"":""%>/></td>
 <td height="30"><a href="KeywordsDetail.html?id=<%=keyword.AutoID %>"><%=keyword.KeyWords %></a></td>
  <td><%=GetSearchEngineType(keyword.SearchEngineType)%></td>
  <td><%=GetKeyWordsStatus(keyword.Status)%></td>
  <td><%=keyword.Commit_Date.ToString("yyyy-MM-dd") %> </td>
<td><a href="Keywords.aspx?action=edit&id=<%=keyword.AutoID %>">修改</a> &nbsp;<a href="?action=delete&id=<%=keyword.AutoID %>" onclick="return confirm('确认删除此关键词?')">删除</a> </td>
</tr>
<%} %>
  </table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tbody><tr>
                <td style="width:10%;height:35px;border-top:solid 1px;border-bottom:solid 1px;border-left:solid 1px; border-color:#CCCCCC">&nbsp;</td>
                <td style="width:20%;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC">共计：<span id="Span_Page_Count"><%=MaxSize%> </span>页 </td>
                <td style="width:5%;text-align:center;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><a id="A_First_Page" target="_self" href="javascript:gopage(1)">首页</a></td>
                <td style="width:5%;text-align:center;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><a id="A_Prev_Page" target="_self" href="javascript:gopage(<%=currPageIndex - 1 %>)">上一页</a></td>
                <td style="width:5%;text-align:center;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><a id="A_Next_Page" target="_self" href="javascript:gopage(<%=currPageIndex + 1 %>)">下一页</a></td>
                <td style="width:5%;text-align:center;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><a id="A_Last_Page" target="_self" href="javascript:gopage(<%=MaxPage %>)">尾页</a></td>
                <td style="width:32%;padding-right:5px;padding-top:4px;text-align:right;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC">第</td>
                <td style="width:3%;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC"><input type="text" id="goPageIndex" name="goPageIndex" style="width:10;border:solid 1px;border-color:#DDDDDD;padding-top:2px;height:20px;" size="5" maxlength="4"/></td>
                <td style="width:2%;padding-left:5px;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-color:#CCCCCC">页</td>
                <td style="width:13%;padding-top:4px;border-top:solid 1px;border-bottom:solid 1px;border-right:solid 1px;border-color:#CCCCCC"><a id="A_Go_Page" target="_self" href="javascript:gopage(document.getElementById('goPageIndex').value)">跳转</a></td>
            </tr>
  </tbody></table>
</div>
<!-- /Main -->
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div class="bottom">
   版权所有：深圳市金兰网络科技有限公司</div>
</td></tr></table></form>
</body>
</html>
